/*
 * MyButtonRenderer.java
 * Copyright 2010 Universidad Francisco de Paula Santander (UFPS).
 * Todos los Derechos Reservados.
 * Creado el 18/04/2010, 09:33:32 PM
 */


package com.ufps.cuatro.util.render;

import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.Serializable;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

/**
 * <i><b>MyButtonRenderer:</b></i> @DefinicionClase
 * @author Carlos A. Torres C. - Dolly E. Guerrero. <https://code.google.com/p/tesis4dor/>
 * @version 1.0 18/04/2010
 * @see TableCellRenderer
 * @see ActionListener
 * @see Serializable
 * @see JButton
 */
public class MyButtonRenderer extends JButton implements TableCellRenderer, ActionListener, Serializable {
    private static final long serialVersionUID = -5709448252885696363L;

//    private ObjetoGenerador objGUI;

    /**
     * Constructor por defecto
     */
    public MyButtonRenderer() {
    }

    /**
     * @DefinicionMetodo
     * @param text @DefinicionParametro
     */
    public MyButtonRenderer(String text) {
        super(text);
    }

//    public MyButtonRenderer(String labelButton, ObjetoGenerador objGUI) {
//        super(labelButton);
//        this.objGUI = objGUI;
//        this.addActionListener(this);
//    }

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        return this;
    }

    public void actionPerformed(ActionEvent e) {        
    }
}
